package com.report.repository;

import com.report.entity.ReportTemplate;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface ReportTemplateRepository extends JpaRepository<ReportTemplate, Object> {

    @Query("SELECT p FROM ReportTemplate p WHERE p.reporttype = :reporttype")
    ReportTemplate getReportTemplateByReporttype(String reporttype);
}
